package dto

import "gitee.com/zoneaurora/shop/internal/model"

type ProductDto struct {
	ID          uint
	Name        string
	ImgUrl      string
	Description string
	Price       float64
}

func ToProductDto(product model.Product) ProductDto {
  return ProductDto{
    ID: product.ID,
    Name: product.Name,
    ImgUrl: product.ImgUrl,
    Description: product.Description,
    Price: product.Price,
  }
}
